class CreateBaddayVoters < ActiveRecord::Migration
  def self.up
    create_table :badday_voters do |t|
      t.column :badday_id, :integer
      t.column :member_voter, :integer
      t.column :remote_voter, :string
      t.timestamps
    end
    remove_column :baddays, :member_vote
    remove_column :baddays,:remote_vote
  end

  def self.down
    drop_table :badday_voters
    add_column :baddays, :member_vote,:integer
    add_column :baddays,:remote_vote,:string
  end
end
